<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic1">
  <title>DROP TEXT SEARCH TEMPLATE</title>
  <body>
    <section>
      <title>Description</title>
      <p id="sql_command_desc">Removes a text search template.</p>
    </section>
    <section>
      <title>Synopsis</title>
    </section>
    <codeblock id="sql_command_synopsis">DROP TEXT SEARCH TEMPLATE [ IF EXISTS ] <varname>name</varname> [ CASCADE | RESTRICT ]</codeblock>
    <section id="section3">
      <title>Description</title>
      <p><codeph>DROP TEXT SEARCH TEMPLATE</codeph> drops an existing text search template. You must
        be a superuser to use this command.</p>
      <p>You must be a superuser to use <codeph>ALTER TEXT SEARCH TEMPLATE</codeph>.</p>
    </section>
    <section id="section4">
      <title>Parameters</title>
      <parml>
        <plentry>
          <pt><codeph>IF EXISTS</codeph></pt>
          <pd>Do not throw an error if the text search template does not exist. A notice is issued
            in this case.</pd>
        </plentry>
        <plentry>
          <pt><codeph><varname>name</varname></codeph></pt>
          <pd>The name (optionally schema-qualified) of an existing text search template.</pd>
        </plentry>
        <plentry>
          <pt><codeph>CASCADE</codeph></pt>
          <pd>Automatically drop objects that depend on the text search template.</pd>
        </plentry>
        <plentry>
          <pt><codeph>RESTRICT</codeph></pt>
          <pd>Refuse to drop the text search template if any objects depend on it. This is the
            default.</pd>
        </plentry>
      </parml>
    </section>
    <section id="section7">
      <title>Compatibility</title>
      <p>There is no <codeph>DROP TEXT SEARCH TEMPLATE</codeph> statement in the SQL standard.</p>
    </section>
    <section id="section8">
      <title>See Also</title>
      <p><codeph><xref href="ALTER_TEXT_SEARCH_TEMPLATE.xml#topic1" type="topic" format="dita"
          /></codeph>, <codeph><xref href="CREATE_TEXT_SEARCH_TEMPLATE.xml#topic1" type="topic"
            format="dita"/></codeph></p>
    </section>
  </body>
</topic>
